package com.geqian.web.serializer;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.BeanProperty;
import com.fasterxml.jackson.databind.ObjectMapper;

public interface SerializationConverter {

    /**
     * 属性值转JSON
     *
     * @param value
     * @param beanProperty
     * @param objectMapper
     * @return
     */
    Object conversion(Object value, BeanProperty beanProperty, ObjectMapper objectMapper) throws JsonProcessingException;

}